package com.qf.java2201.edu.userservice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.java2201.edu.userservice.mapper.PermissionMapper;
import com.qf.java2201.edu.userservice.pojo.Permission;
import com.qf.java2201.edu.userservice.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @date 2022/6/5
 * @desc
 */
@Service("permissionService")
public class PermissionServiceImpl  extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {
    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public Set<String> getMenuPermsByUserId(Long userId) {

        return permissionMapper.selectPermissionByUserId(userId);
    }
}
